import { GameRoom } from './room/GameRoom';
import { Server } from 'colyseus';
import express from 'express';
import http from 'http';

const app = express();

const gameServer = new Server({
    server: http.createServer(app)
});

gameServer.register('game', GameRoom);

gameServer.listen(3000);
console.log('server is on');